Optimal. Leaf size=26 \[ \frac{\sin (a-c) \log (\sin (b x+c))}{b}+x \cos (a-c) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0274765, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {4582, 3475, 8} \[ \frac{\sin (a-c) \log (\sin (b x+c))}{b}+x \cos (a-c) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4582
Rule 3475
Rule 8
Rubi steps
\begin{align*} \int \csc (c+b x) \sin (a+b x) \, dx &=\cos (a-c) \int 1 \, dx+\sin (a-c) \int \cot (c+b x) \, dx\\ &=x \cos (a-c)+\frac{\log (\sin (c+b x)) \sin (a-c)}{b}\\ \end{align*}
Mathematica [A] time = 0.140974, size = 26, normalized size = 1. \[ \frac{\sin (a-c) \log (\sin (b x+c))}{b}+x \cos (a-c) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.201, size = 325, normalized size = 12.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.3371, size = 146, normalized size = 5.62 \begin{align*} \frac{2 \, b x \cos \left (-a + c\right ) - \log \left (\cos \left (b x\right )^{2} + 2 \, \cos \left (b x\right ) \cos \left (c\right ) + \cos \left (c\right )^{2} + \sin \left (b x\right )^{2} - 2 \, \sin \left (b x\right ) \sin \left (c\right ) + \sin \left (c\right )^{2}\right ) \sin \left (-a + c\right ) - \log \left (\cos \left (b x\right )^{2} - 2 \, \cos \left (b x\right ) \cos \left (c\right ) + \cos \left (c\right )^{2} + \sin \left (b x\right )^{2} + 2 \, \sin \left (b x\right ) \sin \left (c\right ) + \sin \left (c\right )^{2}\right ) \sin \left (-a + c\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.495983, size = 77, normalized size = 2.96 \begin{align*} \frac{b x \cos \left (-a + c\right ) - \log \left (\frac{1}{2} \, \sin \left (b x + c\right )\right ) \sin \left (-a + c\right )}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 18.4057, size = 335, normalized size = 12.88 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.2109, size = 319, normalized size = 12.27 \begin{align*} \frac{\frac{{\left (\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} - \tan \left (\frac{1}{2} \, a\right )^{2} + 4 \, \tan \left (\frac{1}{2} \, a\right ) \tan \left (\frac{1}{2} \, c\right ) - \tan \left (\frac{1}{2} \, c\right )^{2} + 1\right )}{\left (b x + c\right )}}{\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right )^{2} + \tan \left (\frac{1}{2} \, c\right )^{2} + 1} - \frac{2 \,{\left (\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right ) - \tan \left (\frac{1}{2} \, a\right ) \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right ) - \tan \left (\frac{1}{2} \, c\right )\right )} \log \left (\tan \left (\frac{1}{2} \, b x + \frac{1}{2} \, c\right )^{2} + 1\right )}{\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right )^{2} + \tan \left (\frac{1}{2} \, c\right )^{2} + 1} + \frac{2 \,{\left (\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right ) - \tan \left (\frac{1}{2} \, a\right ) \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right ) - \tan \left (\frac{1}{2} \, c\right )\right )} \log \left ({\left | \tan \left (\frac{1}{2} \, b x + \frac{1}{2} \, c\right ) \right |}\right )}{\tan \left (\frac{1}{2} \, a\right )^{2} \tan \left (\frac{1}{2} \, c\right )^{2} + \tan \left (\frac{1}{2} \, a\right )^{2} + \tan \left (\frac{1}{2} \, c\right )^{2} + 1}}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]